package com.wdciti.sccp.iot.common.endpoint;

import java.util.Map;

/**
 * @author JINWEN
 */
public interface EndpointConfig {

    String getName();

    void setName(String name);

    boolean isEnable();

    EndpointType getEndpointType();

    void setEndpointType(EndpointType endpointType);

    Map<String, Object> getConfigMap();

    default EndpointConfig build(String name, EndpointType endpointType) {
        this.setName(name);
        this.setEndpointType(endpointType);
        return this;
    }

    ;
}


